package com.geekhalo.admin.app.menu;

import com.geekhalo.admin.app.menu.query.ListByAppId;
import com.geekhalo.lego.core.query.QueryApplicationServiceDefinition;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import com.geekhalo.lego.core.singlequery.Page;
import java.util.List;
import com.geekhalo.admin.domain.menu.MenuQueryRepository;
import com.geekhalo.admin.domain.menu.MenuView;

@QueryApplicationServiceDefinition(
        repositoryClass = MenuQueryRepository.class,
        masterDataClass = MenuView.class
)
@Validated
public interface MenuQueryApplication {


    List<MenuView> listOf(@Valid ListByAppId query);
}
